package com.morningstar.util;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationContextUtil {
	private static ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"applicationContext.xml"});

	public static ClassPathXmlApplicationContext getContext() {
		return context;
	}
	
	public static Object getBean(String name){
		return context.getBean(name);
	}
	
	public static void main(String[] args){
		
	}
}
